package com.cloudtcm.mapper;

import com.cloudtcm.entity.Docker;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DockerMapper {
    /**
     * 根据用户名查询医生
     * @param username
     * @return
     */
    @Select("select * from docker where username = #{username}")
    Docker getByUsername(String username);

    /**
     * 医生注册
     * @param docker
     */
    void insert(Docker docker);

    /**
     * 更新医生信息
     * @param docker
     */
    void update(Docker docker);
}
